<template>
  <div class="me">
    <div class="title">
     <h5 class="name">
      我的
     </h5>
     <div class="infos">
      <div class="infoimg">
        <img src="../../assets/img/logo.png" alt="" class="touxiang">
      </div>
      <div class="infouser">
        <div class="username">爱吃罗非鱼</div>
      <div class="vip">钻石会员</div>
      </div>
     </div>
    </div>
    <div class="main">
      <div class="body">
        <template v-for="(item,index) in infodata" :key="index">
          <div class="item">
          <div class="left"><img src="../../assets/img/logo.png" alt="" class="icon"></div>
          <div class="right"><span class="info">{{ item.name }}</span><span class="more">&gt;</span></div>
        </div>
        </template>
      </div>
      <div class="footer">
      爱吃罗非鱼出品
    </div>
    </div>
  </div>
</template>


<script setup>
const infodata=[
{name:'个人简介'},
{name:'设置'},
{name:'购物车'},
{name:'收藏'},
{name:'浏览记录'},
{name:'退出登录'}
]

</script>


<style lang="less" scoped>
.me{
  width: 100%;
  background-color: #ff9854;
  display: flex;
  flex-wrap: wrap;
  .title{
    width: 100%;
    height: 100px;
    margin: 0 auto;
    border-radius: 10px;
    color: #fff;
    font-size: 12px;
    .name{
      text-align: center;
      line-height: 100px;
      font-size: 18px;
    }
    .infos{
      display: flex;
      .infoimg{
        padding: 0 20px;
        .touxiang{
      //  object-fit: contain;
       width: 140px;
       height: 120px;
       border-radius: 50%
      }
      }
      .infouser{
        flex: 1;
        font-size: 16px;
        padding:  20px;
        .vip{
          margin-top: 10px;
        }
      }

    }
  }
  .main{
    margin-top: 140px;
    background-color: #fff;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    width: 100%;
    .body{
      padding: 20px;
      .item{
        padding: 0 10px;
        margin-top: 10px;
        // border: 1px solid #ccc;
        display: flex;
        .left{
          .icon{
            width: 50px;
            height: 50px;
            border-radius: 50%;
          }
        }
        .right{
          flex: 1;
          display: flex;
          padding-left: 20px;
          justify-content: space-between;
          .info{
            text-align: center;
            line-height: 50px;
            color: #666;

          }
          .more{
            line-height: 50px;
            color: #ccc;
          }
        }
      }
    }
    .footer{
      width: 100%;
      height: 50px;
      color: #ccc;
      font-size: 12px;
      margin-bottom: 20px;
      text-align: center;
    }
  }
  }

</style>